package com.gz.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gz.utils.DataFmtUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.Date;
@Data
public class TuserQueryDto extends PageInfoDto implements Serializable {
    @ApiModelProperty("角色id")
    private String roleId;
    @ApiModelProperty("排序字段")
    private String orderField;
    @ApiModelProperty("排序类型")
    private String orderType;
    public String getOrderField() {
        if (!StringUtils.isEmpty(orderField)) {
            return DataFmtUtil.xX2x_x(orderField);
        }
        return orderField;
    }
}
